/*
 * MainFrame.h
 *
 *  Created on: 2012-8-28
 *      Author: yangentao@gmail.com
 */

#ifndef MAINFRAME_H_
#define MAINFRAME_H_
#include "window.h"

class FrameWindow: public Window {
	typedef Window Super;

private:
	bool exitOnClose;
public:
	FrameWindow();
	virtual ~FrameWindow();
public:
	void setExitOnClose(bool exitOnClose);
	bool create(LPCTSTR text, Rect rect, HWND parent = 0);
	MsgResult onMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
};

#endif /* MAINFRAME_H_ */
